/*
 * This source code is part of TWaver 4.0
 *
 * Serva Software PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 * Copyright 2002 - 2011 Serva Software. All rights reserved.
 */

package demo.editor.drawing.element;

import java.awt.Color;

import twaver.ShapeNode;
import twaver.TWaverConst;

public class Polygon extends ShapeNode{
	
	public Polygon(){
		this.init();
	}
	public Polygon(Object id){
		super(id);
		this.init();
	}
	
	private void init(){
		this.putBorderColor(Color.WHITE);
		this.putShapeNodeShowDashLine(false);
		this.setShapeNodeType(TWaverConst.SHAPENODE_CLOSE_STRAIGHT_LINE);
		this.putCustomDrawOutlineColor(TWaverConst.COLOR_DRAKERCYAN);
		this.putTextureFactory(TWaverConst.TEXTURE_GRID_DIAMOND);
		this.putCustomDrawFillColor(TWaverConst.COLOR_DRAKERCYAN);
		this.putCustomDrawGradient(false);
		this.putCustomDrawFill(true);
	}
}